Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Heap Sort.py #176

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Create Heap Sort.py #176

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Oct 16, 2020

heap sort in python

heap sort in python
@pep8speaks
Copy link

Hello @ritabhkumar! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

[Line 1:49](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L1): W291 trailing whitespace
[Line 2:1](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L2): W293 blank line contains whitespace
[Line 3:40](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L3): W291 trailing whitespace
[Line 4:20](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L4): W291 trailing whitespace
[Line 5:24](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L5): W291 trailing whitespace
[Line 6:16](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L6): E261 at least two spaces before inline comment
[Line 6:45](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L6): W291 trailing whitespace
[Line 7:5](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L7): E741 ambiguous variable name 'l'
[Line 7:39](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L7): W291 trailing whitespace
[Line 8:40](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L8): W291 trailing whitespace
[Line 9:1](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L9): W293 blank line contains whitespace
[Line 10:46](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L10): W291 trailing whitespace
[Line 11:24](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L11): W291 trailing whitespace
[Line 12:34](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L12): W291 trailing whitespace
[Line 13:20](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L13): W291 trailing whitespace
[Line 14:1](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L14): W293 blank line contains whitespace
[Line 15:47](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L15): W291 trailing whitespace
[Line 16:24](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L16): W291 trailing whitespace
[Line 17:40](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L17): W291 trailing whitespace
[Line 18:20](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L18): W291 trailing whitespace
[Line 19:1](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L19): W293 blank line contains whitespace
[Line 20:29](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L20): W291 trailing whitespace
[Line 21:21](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L21): W291 trailing whitespace
[Line 22:15](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L22): E231 missing whitespace after ','
[Line 22:43](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L22): E231 missing whitespace after ','
[Line 22:50](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L22): E261 at least two spaces before inline comment
[Line 22:57](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L22): W291 trailing whitespace
[Line 23:1](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L23): W293 blank line contains whitespace
[Line 24:28](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L24): W291 trailing whitespace
[Line 25:33](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L25): W291 trailing whitespace
[Line 26:1](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L26): W293 blank line contains whitespace
[Line 27:51](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L27): W291 trailing whitespace
[Line 28:1](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L28): E302 expected 2 blank lines, found 1
[Line 28:19](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L28): W291 trailing whitespace
[Line 29:17](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L29): W291 trailing whitespace
[Line 30:1](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L30): W293 blank line contains whitespace
[Line 31:23](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L31): W291 trailing whitespace
[Line 32:38](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L32): W291 trailing whitespace
[Line 33:27](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L33): W291 trailing whitespace
[Line 34:1](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L34): W293 blank line contains whitespace
[Line 35:34](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L35): W291 trailing whitespace
[Line 36:32](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L36): W291 trailing whitespace
[Line 37:40](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L37): E261 at least two spaces before inline comment
[Line 37:47](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L37): W291 trailing whitespace
[Line 38:27](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L38): W291 trailing whitespace
[Line 39:1](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L39): W293 blank line contains whitespace
[Line 40:28](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L40): W291 trailing whitespace
[Line 41:1](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L41): E305 expected 2 blank lines after class or function definition, found 1
[Line 41:8](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L41): E201 whitespace after '['
[Line 41:29](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L41): W291 trailing whitespace
[Line 42:14](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L42): W291 trailing whitespace
[Line 43:13](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L43): W291 trailing whitespace
[Line 44:6](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L44): E211 whitespace before '('
[Line 44:26](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L44): W291 trailing whitespace
[Line 45:19](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L45): W291 trailing whitespace
[Line 46:10](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L46): E211 whitespace before '('
[Line 46:18](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L46): E225 missing whitespace around operator
[Line 46:26](https://github.com/diptangsu/Sorting-Algorithms/blob/a1e4d61ae9aa0a995a0ebe49bee4bccb9f66aab4/Python/Heap Sort.py#L46): W291 trailing whitespace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant